// 然并卵

import { isCodeMessage } from "../config";


/**
 * @author: 小佘佘🦀
 * @description 是否登录状态
 * 
 * */
export const isLogin = async () => {

    const response = await fetch(`/api-backend/api/user/authentication`, {
        method: "get",
        mode: "no-cors"
    })
    
    return isCodeMessage(response)

}